<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../vue.js"></script>
</head>

<body>
  <div id="app">
    <ul v-if="isShow">
      <li>你好</li>
      <li>你好</li>
      <li>你好</li>
      <li>你好</li>
    </ul>
    <div v-else>v-if为假的时候,显示的div</div>
  </div>
  <script>
    const app = new Vue({
      el: "#app",
      data: {
        isShow: true
      }
    })
  </script>
</body>

</html>